package com.example.backend2.domain;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

@Target(ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME)
public @interface Role {

    int GUEST = 0; // 访客
    int USER = 1;  // 用户
    int ADMIN = 2; // 管理员

    public int value() default GUEST;
}